package com.ruiben.mall.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "product_attr")
public class ProductAttr {
    /**
     * id
     */
    @Id
    private String id;

    /**
     * 商品id
     */
    @Column(name = "goods_id")
    private String goodsId;

    /**
     * 属性id
     */
    @Column(name = "attr_id")
    private String attrId;

    /**
     * 对应该属性的价格
     */
    @Column(name = "attr_price")
    private Long attrPrice;

    /**
     * 属性值
     */
    @Column(name = "attr_value")
    private String attrValue;

    private Attribute attribute;

    public Attribute getAttribute() {
        return attribute;
    }

    public void setAttribute(Attribute attribute) {
        this.attribute = attribute;
    }

    /**
     * 获取id
     *
     * @return id - id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取商品id
     *
     * @return goods_id - 商品id
     */
    public String getGoodsId() {
        return goodsId;
    }

    /**
     * 设置商品id
     *
     * @param goodsId 商品id
     */
    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 获取属性id
     *
     * @return attr_id - 属性id
     */
    public String getAttrId() {
        return attrId;
    }

    /**
     * 设置属性id
     *
     * @param attrId 属性id
     */
    public void setAttrId(String attrId) {
        this.attrId = attrId;
    }

    /**
     * 获取对应该属性的价格
     *
     * @return attr_price - 对应该属性的价格
     */
    public Long getAttrPrice() {
        return attrPrice;
    }

    /**
     * 设置对应该属性的价格
     *
     * @param attrPrice 对应该属性的价格
     */
    public void setAttrPrice(Long attrPrice) {
        this.attrPrice = attrPrice;
    }

    /**
     * 获取属性值
     *
     * @return attr_value - 属性值
     */
    public String getAttrValue() {
        return attrValue;
    }

    /**
     * 设置属性值
     *
     * @param attrValue 属性值
     */
    public void setAttrValue(String attrValue) {
        this.attrValue = attrValue;
    }
}